/*
 * spi.c
 *
 * Created: 08.02.2013 12:36:33
 *  Author: saenko
 */ 
#include <stdio.h>
#include <avr/io.h>

void spi_init_master(void)
{
	SPCR = (1<<SPE)|(1<<MSTR)|(1<<SPR0);
	
}

void spi_write_byte(unsigned char data)
{
	SPDR = data;
}